package com.fbs.job.admin.core.entity;
import java.util.*;

/**
* 描述： fbs_job_actuator
* @author wwd
* @date 2024-01-29 13:54:43
*/

public class FbsJobActuator {

        /**
        *主键
        */
        private int id;

        /**
        *执行器appName
        */

        private String appName;

        /**
        *执行器名称
        */

        private String title;

        /**
        *执行器地址多个用逗号隔开
        */

        private String addressList;

        /**
        *地址类型0自动注册1手动注册
        */

        private int addressType;

        /**
        *更新时间
        */

        private Date updateTime;

        /**
        *创建时间
        */

        private Date createTime;


        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public String getAppName() {
                return appName;
        }

        public void setAppName(String appName) {
                this.appName = appName;
        }

        public String getTitle() {
                return title;
        }

        public void setName(String title) {
                this.title = title;
        }

        public String getAddressList() {
                return addressList;
        }

        public void setAddressList(String addressList) {
                this.addressList = addressList;
        }

        public int getAddressType() {
                return addressType;
        }

        public void setAddressType(int addressType) {
                this.addressType = addressType;
        }

        public Date getUpdateTime() {
                return updateTime;
        }

        public void setUpdateTime(Date updateTime) {
                this.updateTime = updateTime;
        }

        public Date getCreateTime() {
                return createTime;
        }

        public void setCreateTime(Date createTime) {
                this.createTime = createTime;
        }


        // registry list
        private List<String> registryList;  // 执行器地址列表(系统注册)
        public List<String> getRegistryList() {
                if (addressList!=null && addressList.trim().length()>0) {
                        registryList = new ArrayList<String>(Arrays.asList(addressList.split(",")));
                }
                return registryList;
        }
}